package com.cn.web.user.vo;

import com.cn.empty.EmptyCheck;
import com.cn.validate.decode.JsonSerializerDecode;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * description: UserLoginDTO <br>
 * date: 21.12.14 13:45 <br>
 * author: cn_yaojin <br>
 * version: 1.0 <br>
 */
@Setter
@Getter
@ToString
@Accessors(chain = true)
@ApiModel(value = "手机验证码登录")
public class UserLoginByPcCodeDTO {

    @JsonDeserialize(using = JsonSerializerDecode.class)
    @EmptyCheck(message = "手机号格式错误", max = 13)
    @ApiModelProperty(value = "手机号")
    private String phone;

    @JsonDeserialize(using = JsonSerializerDecode.class)
    @EmptyCheck(message = "验证码不能为空")
    @ApiModelProperty(value = "验证码")
    private String code;

    @JsonDeserialize(using = JsonSerializerDecode.class)
    @EmptyCheck(message = "参数不能为空")
    @ApiModelProperty(value = "用户类型，1-内部系统管理员 2-外部用户")
    private String userType;


}
